define(['app'], function(app) {
	'use strict';

	//实例化方法
	var factory = function(Http) {

	
		//返回信息
		return {
			//我的供应商
			distributor_search: function(nPage, callback,calldone) {
				//post请求
				Http.post({
					method: 'member.supplier.search',
					pagelimit:10,
					nPage:nPage
				}, function(result) {
					if(callback)
						callback(result.result);
				}, function(e) {

				}, function() {
					if(calldone)
						calldone();
				});

			}
		

		};
	}

	factory.$inject = ['Http'];
	return app.registerService("Distributor_sxqd", factory);
});